/* 全局样式 */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#root {
  height: 100%;
}

/* 终端样式 */
.terminal-container {
  width: 100%;
  height: 100%;
  background-color: #1e1e1e;
  padding: 8px;
  box-sizing: border-box;
}

.xterm {
  height: 100%;
}

/* 连接面板样式 */
.connection-panel {
  width: 300px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

/* 连接项样式 */
.connection-item {
  cursor: pointer;
  transition: background-color 0.2s;
}

.connection-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.connection-item.active {
  background-color: rgba(25, 118, 210, 0.08);
}

/* 状态指示器 */
.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.status-connected {
  background-color: #4caf50;
}

.status-disconnected {
  background-color: #f44336;
}

.status-connecting {
  background-color: #ff9800;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}